package com.hcr.elecident;

import android.app.Application;
import android.content.Context;

public class MyApp extends Application {

    public static Context sContext;//全局的Context对象

    public static Context getContext(){
        return sContext;
    }
    @Override
    public void onCreate() {
        super.onCreate();
        sContext = getApplicationContext();
    }
}
